//
//  EditShippingAddressCell.h
//  bestkeep
//
//  Created by bj on 2016/11/7.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
@class BK_my_ShippingAddress;
@class BK_my_selectedContactPeopleCell;

typedef void (^Compeletion)(ABRecordRef person);

@protocol AddContactPeopleDelegate <NSObject>

- (void)addContactPeople:(BK_my_selectedContactPeopleCell *)cell inputEnd:(BK_my_ShippingAddress *)address;
- (void)addContactPeople:(BK_my_selectedContactPeopleCell *)cell chooseContactPeople:(Compeletion)compeletion;

@end

@interface BK_my_selectedContactPeopleCell : UITableViewCell<UITextFieldDelegate>

@property (nonatomic, strong) BK_my_ShippingAddress *address;
@property (nonatomic, strong) UITextField *nameTextfield;
@property (nonatomic, strong) UITextField *phoneTextfield;
@property (nonatomic, strong) UIButton *selectedContactsButton;
@property (nonatomic, strong) UILabel *nameLabel;
@property (nonatomic, strong) UILabel *phoneLabel;

@property (nonatomic, strong) UIImageView *addPeopleImg;
@property (nonatomic, weak) id<AddContactPeopleDelegate> delegate;

- (void)initlizeValue:(CellModel *)model;

@end
